package com.rockcent.service;

import com.rockcent.mall.lib.domain.MerchantDeductionsFlow;
import com.rockcent.mall.lib.domain.enumclass.MerchantDeductionsStatus;
import com.rockcent.mall.lib.domain.enumclass.MerchantDeductionsType;

/**
 * Created by zhangjh on 2017/4/5.
 */
public interface MerchantDeductionsFlowSrv {
    /**
     * @param mallId
     * @param merchantId
     * @param settlementTime
     * @param deductionsStatus
     * @param deductionsType
     * @return
     */
    MerchantDeductionsFlow findTop1ByMallIdAndMerchantIdAndSettlementDateAndDeductionsStatusAndDeductionsType(Long mallId, Long merchantId, String settlementTime, MerchantDeductionsStatus deductionsStatus, MerchantDeductionsType deductionsType);

    /**
     * 保存扣费流水
     *
     * @param merchantDeductionsFlow
     */
    MerchantDeductionsFlow save(MerchantDeductionsFlow merchantDeductionsFlow);

}
